package com.niit.user.web;

import com.niit.user.service.UserMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yaojianfeng
 */
@RestController
@RequestMapping("/message")
public class UserMessageController {
    @Autowired
    private UserMessageService messageService;


    @GetMapping("/rabbitmq/{msg}")
    public String sendMessage(@PathVariable("msg") String msg) {
        return messageService.send(msg);
    }

}
